﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;

namespace Beryl
{
    /// <summary>
    /// FinishWork 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // 若要允许使用 ASP.NET AJAX 从脚本中调用此 Web 服务，请取消注释以下行。 
    // [System.Web.Script.Services.ScriptService]
    public class FinishWork : System.Web.Services.WebService
    {

        [WebMethod]
        public string HelloWorld()
        {
            return "Hello World";
        }

        [WebMethod(Description = "仓库和库位")]
        public string[] getWareHouseCode(string para, string Data)
        {
            return Model.FinishWork.Instance.WareHouseCode(para).ToArray();
        }

        [WebMethod(Description = "流传单数据获取")]
        public string[] selectBarCode(string barcode, string Data)
        {
            return Model.FinishWork.Instance.getBarCode(barcode).ToArray();
        }

        [WebMethod(Description = "提交数据检查")]
        public string[] checkSummitData(string para, string Data)
        {
            return Model.FinishWork.Instance.checkSummitData(para).ToArray();
        }

        [WebMethod(Description = "数据提交")]
        public string[] SummitData(string para, string Data)
        {
            return Model.FinishWork.Instance.SummitData(para).ToArray();
        }
     }
}
